package be.fomp.jeve.application.caching;

import be.fomp.jeve.application.exceptions.JEveCacheLoadingException;
import be.fomp.jeve.application.exceptions.JEveCacheStoringException;

/**
 * Implementation of Cacher in whoch caching is disabled.
 * @author meyssven
 *
 */
public final class DefaultCacherDisabled implements Cacher {

	/**
	 * This method will always return null.
	 */
	public Object load(String location) throws JEveCacheLoadingException {
		// Caching disabled so nothing can be returned.
		return null;
	}

	/**
	 * This method will do nothing at all. since caching is disabled nothing will be stored to the hard drive.
	 */
	public void store(Object jeveObject, String location) throws JEveCacheStoringException {
		//Caching is disabled so nothing will be returned.
	}

}
